package org.jeecg.common.modules.withdraw.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.modules.order.vo.OrderInfoReqVo;
import org.jeecg.common.modules.withdraw.entity.WithdrawRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.common.modules.withdraw.vo.WithDrawReqVo;

/**
 * @Description: withdraw_record
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
public interface WithdrawRecordMapper extends BaseMapper<WithdrawRecord> {
    /**
     * 查询
     * @param doctorName
     * @param mobile
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<WithDrawReqVo> selectWithDrawInfo(
            @Param("doctorName") String doctorName,
            @Param("mobile") String mobile,
            @Param("dataStart") Integer dataStart,
            @Param("pageSize") Integer pageSize);

    /**
     * 查询的总条数
     * @param doctorName
     * @param mobile
     * @return
     */
    int getWithDrawCount(
            @Param("doctorName") String doctorName,
            @Param("mobile") String mobile);

    /**
     * 查询在进行的（账户——账户流水——提现记录）的数量
     * @param accountId
     * @return
     */
    int getAccountDrawStateCount(
            @Param("accountId") String accountId);
}
